package ca.unbc.cpsc672.rcmd;

import java.sql.ResultSet;
import java.sql.SQLException;

public class BusinessInfo {
	public final String id;
	public final String name;
	public final String address;
	public final double longitude;
	public final double latitude;
	public final double mo_open;
	public final double mo_close;
	public final double service;
	public final double taste;
	public final double popularity;
	public final double stars;

	public BusinessInfo(ResultSet rs) throws SQLException {
		id = rs.getString("id");
		name = rs.getString("name");
		address = rs.getString("address");
		latitude = rs.getDouble("latitude");
		longitude = rs.getDouble("longitude");
		mo_open = rs.getDouble("mo_open");
		mo_close = rs.getDouble("mo_close");
		service = rs.getDouble("service");
		taste = rs.getDouble("taste");
		popularity = rs.getDouble("popularity");
		stars = rs.getDouble("stars");
	}

	// support level
	public double time_rule;
	public double pop_rule = 1;
	public double st_rule;
	public double distance_rule;

	public double rate;
}
